<?php 
error_reporting(E_ALL);
            ini_set('display_errors','On');
// echo $this->js->ajax("ok","/mvc/blog/create");
$this->layout = '~/views/shared/_defaultLayout.php';
?>
 <script type="text/javascript">
// function validateForm() {
//     var x = document.forms["myForm"]['name'].value;
//     if (x==null || x=="") {
//         alert("First name must be filled out");
//         return false;
//     }
// }
// </script>
<?php 
foreach ($err as $error) {
  
}
?>
<div class="block bgWhite">
	<div class="content"><div id='bloglist'></div></div>
</div>
	<div class="content">
	<div class="col-xs-6 col-md-7">
<form class="form-horizontal" action="" role="form" method="post" enctype="multipart/form-data" name="myForm" onsubmit="return validateForm()">
  <div class="form-group">
    <div class="col-sm-10">
    <select name="country_id" class="form-control" value="">
      <?php foreach ($getCountry as $items) { ?>
        <option value="<?php echo $items['id']; ?>"><?php echo $items['name']; ?></option>
      <?php } ?>
    </select>
      </div>
    </div>  
  <div class="form-group">
    <div class="col-sm-10">      
      <input type="text" class="form-control" placeholder="Add University Name" name="name">
      <?php echo (isset($err['name'])) ? $err['name']:null ?>
      <input type="hidden" class="form-control" placeholder="Text input" name="id" value="<?php echo (isset($getsubject['id'])) ? $getsubject['id']:null ?>">
      <input type="hidden" class="form-control" placeholder="Text input" name="create_date" value="">
      <input type="hidden" class="form-control" placeholder="Text input" name="modified">
    </div>
  </div>
  <div class="form-group">
      <button type="submit" class="btn btn-primary" name="usersubmit" value="">Add</button>
  </div>
</form>
</div>
</div>